package org.example;


import com.java3y.austin.TencentSmsScript;
import com.java3y.austin.pojo.SmsParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Arrays;
import java.util.HashSet;

@SpringBootApplication
@RestController
@Slf4j
public class AustinApplication {
    @Resource
    private TencentSmsScript tencentSmsScript;

    public static void main(String[] args) {
        SpringApplication.run(AustinApplication.class, args);
    }

    @GetMapping("/hello")
    public String hello(@RequestParam(value = "name", defaultValue = "World") String name) {
        SmsParam smsParam = SmsParam.builder()
                .phones(new HashSet<>(Arrays.asList("13719193845")))
                .content("3333")
                .build();
        return null;
    }
}
